package system.task.logger;

import org.slf4j.Logger;

public class TaskLoggerSlf4jWriter implements TaskLoggerWriter {
    private Logger logger;

    public TaskLoggerSlf4jWriter(Logger logger) {
        this.logger = logger;
    }

    @Override
    public void close() throws Exception {

    }

    @Override
    public void info(String time, String message, boolean newLine) {
        this.logger.info(message);
    }

    @Override
    public void error(String time, String message, boolean newLine) {
        this.logger.error(message);
    }
}
